<?php
class statistics {
	var $CI;
	var $statistics_model;
	public function __construct() {
		$this->CI = & get_instance ();
		$this->CI->load->model ( "website/statistics_model" );
		$this->statistics_model = $this->CI->statistics_model;
	}
	public function query_statistics_info($id) {
		return $this->statistics_model->query_statistics_info ( $id );
	}
	public function update_statistics($statistics, $id) {
		$result ['result'] = true;
		$result ['message'] = "";
		$this->statistics_model->update_statistics ( $statistics,$id );
		$result ['redirect_url'] = base_url () . "index.php/website_statistics_manage";
		return $result;
	}
}